package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.OrderitemAirportserviceMapper;
import com.ktgj.service.domain.OrderitemAirportservice;
import com.ktgj.service.service.IOrderitemAirportserviceService;

/**
 * 机场服务订单明细
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class OrderitemAirportserviceServiceImpl implements IOrderitemAirportserviceService 
{
    @Autowired
    private OrderitemAirportserviceMapper orderitemAirportserviceMapper;

    /**
     * 查询机场服务订单明细

     * 
     * @param orderitemId 机场服务订单明细
ID
     * @return 机场服务订单明细

     */
    @Override
    public OrderitemAirportservice selectOrderitemAirportserviceById(Long orderitemId)
    {
        return orderitemAirportserviceMapper.selectOrderitemAirportserviceById(orderitemId);
    }

    /**
     * 查询机场服务订单明细
列表
     * 
     * @param orderitemAirportservice 机场服务订单明细

     * @return 机场服务订单明细

     */
    @Override
    public List<OrderitemAirportservice> selectOrderitemAirportserviceList(OrderitemAirportservice orderitemAirportservice)
    {
        return orderitemAirportserviceMapper.selectOrderitemAirportserviceList(orderitemAirportservice);
    }

    /**
     * 新增机场服务订单明细

     * 
     * @param orderitemAirportservice 机场服务订单明细

     * @return 结果
     */
    @Override
    public int insertOrderitemAirportservice(OrderitemAirportservice orderitemAirportservice)
    {
        orderitemAirportservice.setCreateTime(DateUtils.getNowDate());
        return orderitemAirportserviceMapper.insertOrderitemAirportservice(orderitemAirportservice);
    }

    /**
     * 修改机场服务订单明细

     * 
     * @param orderitemAirportservice 机场服务订单明细

     * @return 结果
     */
    @Override
    public int updateOrderitemAirportservice(OrderitemAirportservice orderitemAirportservice)
    {
        orderitemAirportservice.setUpdateTime(DateUtils.getNowDate());
        return orderitemAirportserviceMapper.updateOrderitemAirportservice(orderitemAirportservice);
    }

    /**
     * 批量删除机场服务订单明细

     * 
     * @param orderitemIds 需要删除的机场服务订单明细
ID
     * @return 结果
     */
    @Override
    public int deleteOrderitemAirportserviceByIds(Long[] orderitemIds)
    {
        return orderitemAirportserviceMapper.deleteOrderitemAirportserviceByIds(orderitemIds);
    }

    /**
     * 删除机场服务订单明细
信息
     * 
     * @param orderitemId 机场服务订单明细
ID
     * @return 结果
     */
    @Override
    public int deleteOrderitemAirportserviceById(Long orderitemId)
    {
        return orderitemAirportserviceMapper.deleteOrderitemAirportserviceById(orderitemId);
    }
}
